<!-- 좌측메뉴 시작-->
		

		<?

			$side_menu_count = 4;

			$side_menu_file[1] = "ndd_p1";
			$side_menu_title[1] = "회사소개";
			$side_menu_target[1] = "ndd_p1.php";

			$side_menu_file[2] = "ndd_p2";
			$side_menu_title[2] = "개인정보보호";
			$side_menu_target[2] = "ndd_p2.php";

			$side_menu_file[3] = "ndd_p3";
			$side_menu_title[3] = "이용약관";
			$side_menu_target[3] = "ndd_p3.php";

			$side_menu_file[4] = "ndd_p4";
			$side_menu_title[4] = "고객센터";
			$side_menu_target[4] = "ndd_p4.php";



		?>
		<div id="body_navigation">
			<div class="navi_dot_line"></div>
			<ul id="navi_list">

			<? 
			for($i=1;$i<=$side_menu_count;$i++)
			{

				?>

				<li id="navi_<?=$side_menu_file[$i]?>">
					<a <? if($current_file == $side_menu_file[$i].".php") echo "class=\"current_page\""; else echo "href=\"".$side_menu_target[$i]."\""; ?> >
						<img src="images/S<?=$i?>_icon_<? if($current_file == $side_menu_file[$i].".php") echo "RED";?>.png" alt="navi_<?=$side_menu_file[$i]?>" border="0"/><?=$side_menu_title[$i]?>
					</a>
					<div class="navi_dot_line"></div>
				</li>

				<?

			}
			?>

			</ul>
		</div>


		<script>
		var SideBarAction = {
			initialize:function()
			{
				this.current_navi = $("li[id*='navi_'] > a[class='current_page']");
				this.another_navi = $("li[id*='navi_'] > a[class!='current_page']");

				this.registerHandlers();
			},
			registerHandlers:function()
			{
				this.onMouseAction();
			},
			onMouseAction:function()
			{
				$(this.another_navi).each(function(){
					var img_src = $("img", this).attr('src') + "";
					$(this).mouseover(function(){
						var background = "#F2F2F2 url('images/list_arrow_.png') 93% 55% no-repeat";
						var img_src_ch = img_src.substring(0, 15) + "RED.png";
						$(this).css('background', background);
						$("img", this).attr('src', img_src_ch);
						$(this).css('cursor', 'pointer');
					});
					$(this).mouseout(function(){
						$(this).css('background', '#FFFFFF');
						$("img", this).attr('src', img_src);
						$(this).css('cursor', 'default');
					});
				});
			}
		};
			$(document).ready(function(){
				SideBarAction.initialize();
			});
		</script>


<!-- 좌측메뉴 끝-->